@import '~@common/css/_variables.scss';

.content {
  display: flex;
  align-items: center;
  line-height: 1;

  .type {
    padding: 2px 4px;
    margin-right: 13px;
    font-size: 14px;
    color: $color;
    border: 1px solid $color;
    border-radius: 2px;
  }

  .title {
    display: flex;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    align-items: center;

    &.cursor {
      cursor: pointer;
    }

    span {
      display: inline-block;
      transform: rotate(180deg);
    }
  }

  .tools {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    span {
      position: relative;
      width: 50px;
      margin-top: 8px;
      line-height: 20px;
      color: #9f9f9f;
      text-align: center;
      cursor: pointer;
      border-radius: 15px;

      &:hover {
        color: #373737;
      }

      &:not(:last-child) {
        margin-right: 10px;

        &::after {
          position: absolute;
          top: 50%;
          right: -5px;
          width: 2px;
          height: 10px;
          background-color: #f2f2f2;
          content: '';
          transform: translateY(-50%);
        }
      }

      &.active {
        color: $color;

        &::before {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: $color;
          border-radius: 15px;
          content: '';
          opacity: 0.08;
        }
      }
    }

    .btn {
      width: 82px;
      height: auto;
      height: 24px;
      padding: 0;
      font-size: 12px;
      line-height: 24px;
      color: #fff;
      text-align: center;
      cursor: pointer;
      background-color: $color;
      border-radius: 12px;
      user-select: none;
    }
  }
}
